﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Practices.Unity;
using System.Text.RegularExpressions;
using ddcCajamarca.BusinessEntities.Directorio;
using ddcCajamarca.BusinessLogic.Directorio.Service;
using ddcCajamarca.Repository.Directorio.Service;

namespace ddcCajamarca.BusinessLogic.Directorio
{

    public class UbigeoBL:IUbigeoBL
    {
        [Dependency]
        public IUbigeoRepository ubigeoRepository { get; set; }

        public Ubigeo GetFromUbigeoById(string id)
        {
            return ubigeoRepository.GetFromUbigeoById(id);
        }

        public IEnumerable<Ubigeo> GetAllUbigeo()
        {
            return ubigeoRepository.GetAllUbigeo();
        }
    }
}
